/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Principal;

import java.awt.Point;

public class Nodo {

    Point Posicion;
    Point PosicionPa;
    int ValorFun;
    int vHeuristica;
    int vCosto;

    public Nodo() {
    int ValorFun=0;
    int vHeuristica=0;
    int vCosto=0;
    }

    public void setPosicion(int x, int y) {
        Posicion = new Point(x, y);
    }

    public Point getPosicion() {
        return Posicion;
    }

    public void setH(Point pInicio, Point pFinal) {
        int x = (int) Math.abs(pInicio.getX() - pFinal.getX());
        int y = (int) Math.abs(pInicio.getY() - pFinal.getY());
        vHeuristica = x + y;
    }
     public int getH(){
     return vHeuristica;
     }

    public void setPosPadre(int x, int y) {
        PosicionPa = new Point(x, y);
    }

    public Point getPosPadre() {
        return PosicionPa;
    }

    public void setCosto(int costo) {
        vCosto = costo;
    }
    
    public int getCosto(){
    return vCosto;
    }

    public void setValorFun(int a, int b) {        
        ValorFun = a + b;
    }
    public int getValorFun() {
        return ValorFun;
    }

   
}
